package com.njtoyo.taxi.admin.mapper.master.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njtoyo.taxi.admin.library.Const;
import com.njtoyo.taxi.admin.mapper.master.entity.DriverGrabSimpleCallPersisted;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
@DS(Const.PRIMARY_DS)
public interface DriverGrabSimpleCallPersistedMapper extends BaseMapper<DriverGrabSimpleCallPersisted> {
    Integer selectCountJoinDriver(@Param("callIds") List<Long> callIds);

    List<Map<String, Object>> selectGrabDriverNumByCallIds(@Param("callIds") List<Long> callIds);
}
